package com.fakeco.fakeproduct;

import static org.junit.Assert.*;

import org.junit.Ignore;
import org.junit.Test;

public class TestJUnit4TestCase
{
  @Test
  public void shouldPass() throws Exception
  {
  }
  
  @Test
  public void shouldFailIfPropertyIsSet() throws Exception
  {
    // This is done so Eclipse doesn't get confused and fail because of this test.
    if (System.getProperty(TestJUnit4TestCase.class.getName()) != null)
      fail("Test Failed");
  }

  public static void enable()
  {
    System.setProperty(TestJUnit4TestCase.class.getName(), "");
  }
  
  public static void disable()
  {
    System.clearProperty(TestJUnit4TestCase.class.getName());
  }
}
